<?php $moduleName = $sf_context->getModuleName()?>
<?php $actionName = $sf_context->getActionName()?>

<div id="menu-wrap">
<div id="menu">
<ul class="menuHoriz" id="main_nav">

  <li id="Home" class="<?php if(($moduleName == 'main') && ($actionName == 'index')) echo 'hover'?>">
      <a id="indexBtn" class="navBtn" href="<?php echo url_for('@homepage')?>">
        <span id="navlabel_coffee" class="navBtn_label">ЭХЛЭЛ</span>
        <span class="undertext">Тавтай морилно уу</span>
      </a>          
  </li>
  
  <li id="Menu" class="<?php if($actionName == 'tlg') echo 'hover'?>">
      <a id="tlg13Btn" class="navBtn" href="<?php echo url_for('main/tlg')?>">
        <span id="navlabel_menu" class="navBtn_label">TLG 13</span> 
        <span class="undertext">TLG 13 ТББ-н тухай</span>
      </a>
  </li>
  
  <li id="Stores" class="<?php if($actionName == 'spriteS') echo 'hover'?>">
      <a id="spriteDeedBtn" class="navBtn" href="<?php echo url_for('main/spriteS')?>">
        <span id="navlabel_stores" class="navBtn_label">SPRITE СУПЕР ЛИГ</span> 
        <span class="undertext">Sprite дээд лигийн мэдээлэл</span>
      </a>
  </li>

  <li id="Sprite" class="<?php if($actionName == 'sprite') echo 'hover'?>">
    	<a id="spriteDevBtn" class="navBtn" href="<?php echo url_for('main/sprite')?>">
      	<span id="navlabel_shop" class="navBtn_label">SPRITE ХӨГЖЛИЙН ЛИГ</span> 
      	<span class="undertext">Sprite хөгжлийн лигийн мэдээлэл</span>
    	</a>
  </li>
  
  <li id="Card" class="<?php if($actionName == 'dream') echo 'hover'?>">
    	<a id="dreamBtn" class="navBtn" href="<?php echo url_for('main/dream')?>">
  	  	<span id="navlabel_ddcard" class="navBtn_label">МӨРӨӨДЛИЙН ЛИГ</span>
  	  	<span class="undertext">Мөрөөдлийн лигийн мэдээлэл</span>
  	  </a>
  </li>
  
  <li id="Fantasy" class="<?php if($moduleName == 'fantasy') echo 'hover'?>">
    	<a id="fantasyBtn" class="navBtn" href="<?php echo url_for('fantasy/index')?>">
    	 	<span class="navBtn_label" id="navlabel_perks">ФАНТАЗИ</span> 
    	 	<span class="undertext">Фантази тоглоом</span>
   	  </a>
  </li> 
  
  <li id="Shop" class="<?php if($moduleName == 'shop') echo 'hover'?>">
     	<a id="shopBtn" class="navBtn" href="<?php echo url_for('shop/index')?>">
     		<span id="navlabel_perks" class="navBtn_label">ДЭЛГҮҮР</span> 
     		<span class="undertext">Онлайн дэлгүүр</span>
     	</a> 
  </li>

</ul><!--menuHoriz-->
</div><!--menu-->
</div><!--menu-wrap-->
<!-- END MENU -->

<br clear="all">

<div id="submenu">
  <?php 
  if($moduleName == 'main')
  {
      switch ($actionName)
      {
        case 'index':
            break;
        case 'tlg':
            echo link_to('Тухай', 'main/spriteS', array()).'|'; 
            echo link_to('Баг', 'team/index?league=spriteS', array()).'|'; 
            echo link_to('Тоглогчид', 'player/index?league=spriteS', array()).'|'; 
            echo link_to('Хүснэгт', 'stat/index?league=spriteS', array()).'|'; 
            echo link_to('Хувиар, дүн', 'stat/index?league=spriteS', array()).'|'; 
            echo link_to('Стат', 'stat/index?league=spriteS', array()); 
            break;
        case 'spriteS':
            echo link_to('Тухай', 'main/spriteS', array()).'|'; 
            echo link_to('Багууд', 'steams/2', array()).'|'; 
            echo link_to('Тоглогчид', 'splayers/2', array()).'|'; 
            echo link_to('Хүснэгт', 'standings/2/win/des', array()).'|'; 
            echo link_to('Хувиар, дүн', 'schedule/2', array()).'|'; 
            echo link_to('Стат', 'sstats/2/pts/des', array());
            break;
        case 'sprite':
            echo link_to('Тухай', 'main/sprite', array()).'|'; 
            echo link_to('Багууд', 'steams/3', array()).'|'; 
            echo link_to('Тоглогчид', 'splayers/3', array()).'|'; 
            echo link_to('Хүснэгт', 'standings/3/win/des', array()).'|'; 
            echo link_to('Хувиар, дүн', 'schedule/3', array()).'|'; 
            echo link_to('Стат', 'sstats/3/pts/des', array());
            break;
        case 'dream':
            echo link_to('Тухай', 'main/sprite', array()).'|'; 
            echo link_to('Багууд', 'steams/3', array()).'|'; 
            echo link_to('Тоглогчид', 'splayers/3', array()).'|'; 
            echo link_to('Хүснэгт', 'standings/3/win/des', array()).'|'; 
            echo link_to('Хувиар, дүн', 'schedule/3', array()).'|'; 
            echo link_to('Стат', 'sstats/3/pts/des', array());
            break;
      }
  }
  elseif($moduleName == 'fantasy')
  {
 	echo link_to('Тухай', 'main/dream', array()).'|'; 
	echo link_to('Баг', 'team/index?league=dream', array()).'|'; 
	echo link_to('Тоглогчид', 'player/index?league=dream', array()).'|'; 
	echo link_to('Хүснэгт', 'stat/index?league=dream', array()).'|'; 
	echo link_to('Хувиар, дүн', 'stat/index?league=dream', array()).'|'; 
	echo link_to('Стат', 'stat/index?league=dream', array());
  }
  elseif($moduleName == 'shop')
  {
    echo link_to('Өмсгөл', 'main/dream', array()).'|'; 
	echo link_to('Туг', 'team/index?league=dream', array()).'|'; 
	echo link_to('Пүүз', 'player/index?league=dream', array()).'|'; 
	echo link_to('Шорт', 'stat/index?league=dream', array()).'|'; 
	echo link_to('Хэрэгсэл', 'stat/index?league=dream', array()).'|'; 
	echo link_to('Бусад', 'stat/index?league=dream', array()); 
  }
  ?>
</div>

<br clear="all">